console.log('init .env')

const fs = require('fs')
const fd = fs.openSync('.env', 'w')

let cnt = '# 通用'
cnt += '\r\n' + 'VUE_APP_PROJECT_NAME=' + process.env.npm_package_name
cnt += '\r\n' + 'VUE_APP_PROJECT_VERSION=' + process.env.npm_package_version
fs.writeSync(fd, cnt)

fs.closeSync(fd)